/**
 * Copyright (c) 2011 Amity AP CS A Students of 2010-2011.
 *
 * ex: set filetype=java expandtab tabstop=4 shiftwidth=4 :
 * * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of
 * the License, or (at your option) any later version.
 *
 * This code is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * This code is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published
 * by the Free Software Foundation.
 */
package org.amityregion5.projectx.common.communication;

import org.amityregion5.projectx.common.communication.messages.Message;

/**
 * An interface whose implementing classes must be able to handle messages.
 *
 * @author Joe Stein
 */
public interface MessageListener {

    /**
     * Handles/processes a message.
     * @param m the message to be handled
     */
    /**
     * Handles a message that just came from either the server or client
     * @param m Message to handle
     */
    public void handle(Message m);

    /**
     * Notifies the listener that the socket closed.
     */
    public void tellSocketClosed();
    
}
